<?php

class BookmakerLang extends AppModel {

    var $useTable = 'bookmaker_lang'; // nome della tabella

    // public $recursive = 0;

	// public $belongsTo = array(
	        // 'Bookmaker' => array(
	            // 'className'    => 'Bookmaker' 
	            // ,'foreignKey' => 'reference_id'
	        // ) 
	// );

	public function setLanguage($locale) {
        $this->locale = $locale;
    }
    
    
    // public function beforeSave($options = array()) {
        // if (!empty($this->data['BookmakerLang'])) {
            // $this->data['BookmakerLang']['descrizione'] = htmlentities($this->data['BookmakerLang']['descrizione'] ,ENT_QUOTES);
        // }
        // return true;
    // }
//     
//     
    // public function afterFind($results, $primary = false) {
	    // foreach ($results as $key => $val) {
	        // if (isset($val['BookmakerLang'])) {
	            // $results[$key]['BookmakerLang']['descrizione'] = html_entity_decode($results[$key]['BookmakerLang']['descrizione']);
	        // }
	    // }
	    // return $results;
	// }
    

}
?>